// const obj = {
//   v: 1,
//   next: null,
// };

// let head = obj;
// let newHead: any = head;
// newHead.next = { v: 2, next: null };
// newHead = newHead.next;
// console.log(head);
// newHead!.next = { v: 3, next: { v: 4, next: { v: 5, next: null } } };
// console.log(head);
// newHead = newHead!.next;
// newHead!.next = { v: 6, next: null };
// newHead.next = null;
// console.log(head);

const arr: any[] = [];
arr[10] = [];
console.log(arr);
